package com.zhima.dto;

import lombok.Data;

/**
 * @author : Administer
 * @date : 2023-09-07 14:16
 **/
@Data
public class Judge0SubmissionStatus {
    /**
     * Judge0的提交状态
     */
    public static final int IN_QUEUE = 1;
    public static final int PROCESSING = 2;
    public static final int ACCEPTED = 3;
    public static final int WRONG_ANSWER = 4;
    public static final int TIME_LIMIT_EXCEEDED = 5;
    public static final int COMPILATION_ERROR = 6;
    /**
     * 非法访问内存
     */
    public static final int RUNTIME_ERROR_SIGSEGV = 7;
    /**
     * 写入单个文件大小超出限制
     */
    public static final int RUNTIME_ERROR_SIGXFSZ = 8;
    /**
     * 算术运算异常
     */
    public static final int RUNTIME_ERROR_SIGFPE = 9;
    /**
     * 非法内存地址、栈溢出
     */
    public static final int RUNTIME_ERROR_SIGABRT = 10;
    /**
     * 非零的返回值
     */
    public static final int RUNTIME_ERROR_NZEC = 11;
    public static final int RUNTIME_ERROR_OTHER = 12;
    public static final int INTERNAL_ERROR = 13;
    /**
     * 执行的程序文件格式不E确
     */
    public static final int EXEC_FORMAT_ERROR = 14;
    private Integer id;
    private String description;

    public Judge0SubmissionStatus(Integer id, String description) {
        this.id = id;
        this.description = description;
    }

    public Judge0SubmissionStatus() {
    }
}
